package com.clive.bean;

import java.math.BigDecimal;
import java.util.Date;

public class Dishes {
    private Integer id;
    private String dishName;
    private Double price;
    private int buyCount;
    private String picPath;
    private Date created;
    private Date updated;
    private Integer status;
    //多对一关系的建立
    private DishesCategory category;
    //整理代码快捷键ctrl+alt+l
    //get，set方法等快捷键：alt+ins键或者鼠标右键Generete创建，shift是全选
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public DishesCategory getCategory() {
        return category;
    }

    public void setCategory(DishesCategory category) {
        this.category = category;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(int buyCount) {
        this.buyCount = buyCount;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }


    @Override
    public String toString() {
        return "Dishes [id=" + id + ", dishName=" + dishName + ", price=" + price + ", buyCount=" + buyCount
                + ", picPath=" + picPath + ", created=" + created + ", updated=" + updated + ", status=" + status + "]";
    }

    public Dishes(String dishName, Double price, String picPath) {
        super();
        this.dishName = dishName;
        this.price = price;
        this.picPath = picPath;
    }

    public Dishes() {
        super();
        // TODO Auto-generated constructor stub
    }
}

	